﻿using System;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Services;
using YaAppoint.Response;

namespace YaAppoint.Rules
{
    /// <summary>
    /// 规则服务接口
    /// </summary>
    [RemoteService(isEnabled: false)]
    public interface IRuleAppService:IApplicationService
    {
        Task<BackJson> LoadRuleGroupOptions(RuleLevel level, Guid? depId, Guid? deviceTypeId, Guid? deviceId);

        Task<BackJson> GetRuleDetail(Guid id);

        Task<BackJson> GetRuleGroupDetail(Guid id);
       
        Task<BackJson> LoadTableData(RuleLevel level,Guid? depId,Guid? deviceTypeId,Guid? deviceId);

        Task<BackJson> RuleGroupCreateSubmit(RuleGroupCreateDto dto);

        Task<BackJson> RuleGroupEditSubmit(RuleGroupDto dto);

        Task<BackJson> DeleteRuleGroup(Guid id);

        Task<BackJson> RuleCreateSubmit(RuleCreateDto dto);

        Task<BackJson> RuleEditSubmit(RuleDto dto);

        Task<BackJson> DeleteRule(Guid id);

        Task<BackJson> GetGroupRules(Guid groupId);

        BackJson GetLogicTypeOptions();

        BackJson GetLevelOptions();
    }
}
